package Main;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class BussinessFrame extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					BussinessFrame frame = new BussinessFrame();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public BussinessFrame() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JButton btnNewButton = new JButton("上架商品");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				SellFrame f = new SellFrame();
				f.setVisible(true);
				dispose();
			}
		});
		btnNewButton.setFont(new Font("微软雅黑", Font.PLAIN, 24));
		btnNewButton.setForeground(Color.BLUE);
		btnNewButton.setBounds(70, 62, 299, 52);
		contentPane.add(btnNewButton);
		
		JButton button = new JButton("下架商品");
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				DownGoodsFrame f = new DownGoodsFrame();
				f.setVisible(true);
				dispose();
			}
		});
		button.setFont(new Font("微软雅黑", Font.PLAIN, 24));
		button.setForeground(Color.BLUE);
		button.setBounds(70, 124, 299, 60);
		contentPane.add(button);
		
		JButton btnNewButton_1 = new JButton("返回");
		btnNewButton_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				Fframe f = new Fframe();
				f.setVisible(true);
				dispose();
			}
		});
		btnNewButton_1.setFont(new Font("微软雅黑", Font.PLAIN, 24));
		btnNewButton_1.setForeground(Color.BLUE);
		btnNewButton_1.setBounds(309, 194, 103, 43);
		contentPane.add(btnNewButton_1);
	}

}
